package com.why.blog.bean;

import org.springframework.stereotype.Component;

import java.util.Arrays;

/**
 * @program: blog
 * @description:
 * @author: @why
 * @create: 2020-10-05 14:55
 **/
@Component
public class RequsetLog {
    private String URL;
    //那个类的方法名字被调用了
    private String ClassMethod;
    private String ip;
    private String location;
    //方法参数
    private Object args[];

    public RequsetLog() {
    }

    public RequsetLog(String URL, String classMethod, String ip, String location, Object[] args) {
        this.URL = URL;
        ClassMethod = classMethod;
        this.ip = ip;
        this.location = location;
        this.args = args;
    }

    public String getURL() {
        return URL;
    }

    public void setURL(String URL) {
        this.URL = URL;
    }

    public String getClassMethod() {
        return ClassMethod;
    }

    public void setClassMethod(String classMethod) {
        ClassMethod = classMethod;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

    @Override
    public String toString() {
        return "RequsetLog{" +
                "URL='" + URL + '\'' +
                ", ClassMethod='" + ClassMethod + '\'' +
                ", ip='" + ip + '\'' +
                ", location='" + location + '\'' +
                ", args=" + Arrays.toString(args) +
                '}';
    }
}
